package org.yzh.web.service;

import org.yzh.web.model.entity.AlarmCountHourDO;
import org.yzh.web.model.vo.AlarmCountHour;
import org.yzh.web.model.vo.AlarmCountHourQuery;

import java.time.LocalDate;
import java.time.LocalTime;
import java.util.List;
import java.util.Optional;

/**
 * @author lsj
 * @date 2021/1/17 1:26
 */
public interface AlarmCountHourService {

    List<AlarmCountHourDO> find(AlarmCountHourQuery query);

    List<AlarmCountHour> findAlarmCountHour(AlarmCountHourQuery query);

    Optional<AlarmCountHourDO> findUnique(LocalDate date, LocalTime startHour, LocalTime endHour);

    int insert(AlarmCountHourDO record);

    int batchInsert(List<AlarmCountHourDO> records);

    int update(AlarmCountHourDO record);

    int upsert(AlarmCountHourDO record);
}
